home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr45
/
convt2sn.zip
/
CONV2SND.HST
< prev
next >
Wrap
Text File
|
1993-02-03
|
3KB
|
91 lines
CONVERT TO SOUND 1.77, by Kenneth Udut, January 27, 1993
Revision list:
--------------
February 3, 1993
1.98
SECOND PUBLIC RELEASE
New Features Include:
* Changeable Sampling Rate (5500, 11000, 22000)
* Ability to add the sound "name" (not 'filename')
in a form readable by DeskMate SOUND.PDM
* An ASK_QUESTIONS section of the source code, which
will allow me (or you) to ask questions of the end_user.
Problems left: Interface is 'hacked together' - not smooth, consistant
or anything. Also, I haven't yet found a way to set the sample size
EXACTLY -=- I'm hoping for a word from you or another for help!
Everything else seems okay, at the moment.
1.97 Implemented SAMPLE_RATE change. Updated Documentation.
1.91 Changing READ to READLN solved problem of wierd "READ"'s.
1.78 - 1.90
Added "questions", like "What's the sampling rate" and such.
Had trouble, as the program wanted to answer the questions FOR me
with 'garbage' replies.
January 27, 1993
1.77:
FIRST PUBLIC RELEASE
Files from size 0 up to the MAXIMUM size allowed by DeskMate Sound
can successfully be converted.
Here's the magic sequence:
IF sample_size < 256 THEN samp_char_1 := CHR(sample_size)
ELSE BEGIN
IF sample_size < 65536 THEN
BEGIN
samp_char_1 := CHR(sample_size div 256);
samp_char_2 := CHR((sample_size div 256) + 1);
samp_char_3 := CHR(0);
END
ELSE
BEGIN
samp_char_1 := CHR(sample_size div 65536);
samp_char_2 := CHR(sample_size div 65536);
samp_char_3 := chr((sample_size div 65536) + 1);
END;
END;
WRITE(header_part, samp_char_1, samp_char_2, samp_char_3);
In other words, a file less than 256 bytes is encoded by just using
the corresponding ASCII code. A file from 257 bytes to 65535 bytes
uses TWO bytes to signify file size. A file from 65536 onward and
upward uses THREE bytes to signify file size!
I'm not an engineer, and this whole idea is just a little beyond me,
but the power of HACK helped me immensely here!
January 27, 1993
1.38 - 1.76: Another problem.
Struggled to get CONV2SND to create, in the header, the correct
bytesize of the sound file. I'm bad at math, and I hadn't much
of a clue as to how Tandy did it.
Somewhere around 1.56 or so, I changed the read/write byte by byte,
to BLOCKREAD, BLOCKWRITE, which speeded up the copying process
TREMENDOUSLY! No CRC check, though. I'm not advanced enough to do
that yet.
January 24, 1993
1.37: first working copy.
Also, there is a "click" at the beginning of the sound file. This
is merely the header of the ORIGINAL file, which can easily be
edited out.
January 14 - 24, 1993
1.00 to 1.36: struggled to get a working copy of this program going!
January 14, 1993 - start of the programming for CONV2SND!